/**
 * 共通头部
 */


//当前url
_EsdDynamicTransformationScript.currentUrl = window.location.href;
// 当前站点的主页判断
_EsdDynamicTransformationScript.isSiteIndexPage = (_EsdDynamicTransformationScript.currentUrl == 'http://jst.jl.gov.cn' || _EsdDynamicTransformationScript.currentUrl == 'http://jst.jl.gov.cn/' || _EsdDynamicTransformationScript.currentUrl == 'http://jst.jl.gov.cn/#' || _EsdDynamicTransformationScript.currentUrl == 'http://jst.jl.gov.cn/index.html')?true:false;

//***************	网站上部/导航栏等公共部分 begin	***************	//
	// input type为text,password类型的输入框处理
	// 预先定义几个常用的input title值
	_EsdDynamicTransformationScript.placeholderKeyword='搜索框';
	_EsdDynamicTransformationScript.placeholderUsername='用户名';
	_EsdDynamicTransformationScript.placeholderPassword='密码';
	_EsdDynamicTransformationScript.placeholderSpecialText1='您对全省城市管理效能提升工作有何意见或建议';
	_EsdDynamicTransformationScript.placeholderSelect1 = '信息多选框';
	
	_EsdDynamicTransformationScript.placeholderNum='页数';
	_EsdDynamicTransformationScript.placeholderBtnSubmit='提交';
	if(_EsdDynamicTransformationScript.isSiteIndexPage){
		// 搜索框 对象
		_EsdDynamicTransformationScript.inputObject = $('#keyword');
		$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderKeyword, 'placeholder':_EsdDynamicTransformationScript.placeholderKeyword});
	
		// 用户名框 对象
		_EsdDynamicTransformationScript.inputObject = $('input[name="username"]');
		if($(_EsdDynamicTransformationScript.inputObject).attr('title') == '' && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == '' 
			|| ($(_EsdDynamicTransformationScript.inputObject).attr('title') == undefined && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == undefined)){
			$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderUsername, 'placeholder':_EsdDynamicTransformationScript.placeholderUsername});
		}
		// 密码框 对象
		_EsdDynamicTransformationScript.inputObject = $('input[name="password"]');
		if($(_EsdDynamicTransformationScript.inputObject).attr('title') == '' && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == '' 
			|| ($(_EsdDynamicTransformationScript.inputObject).attr('title') == undefined && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == undefined)){
			$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderPassword, 'placeholder':_EsdDynamicTransformationScript.placeholderPassword});
		}
		// 多选框 对象
		_EsdDynamicTransformationScript.inputObject = $('select[name="select"]');
		$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderSelect1});
	}else{
		// 二级页、三级页  上部的搜索框，用户名和密码是同一个iframe引用
		// 预先定义几个常用的input title值
		// 搜索框 对象
		_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find('#keyword');
		$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderKeyword, 'placeholder':_EsdDynamicTransformationScript.placeholderKeyword});
	
		// 用户名框 对象
		_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find('input[name="username"]');
		if($(_EsdDynamicTransformationScript.inputObject).attr('title') == '' && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == '' 
			|| ($(_EsdDynamicTransformationScript.inputObject).attr('title') == undefined && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == undefined)){
			$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderUsername, 'placeholder':_EsdDynamicTransformationScript.placeholderUsername});
		}	
		// 密码框 对象
		_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find('input[name="password"]');
		if($(_EsdDynamicTransformationScript.inputObject).attr('title') == '' && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == '' 
			|| ($(_EsdDynamicTransformationScript.inputObject).attr('title') == undefined && $(_EsdDynamicTransformationScript.inputObject).attr('placeholder') == undefined)){
			$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderPassword, 'placeholder':_EsdDynamicTransformationScript.placeholderPassword});
		}
		// 多选框 对象
		_EsdDynamicTransformationScript.inputObject = $('iframe:eq(0)').contents().find('select[name="select"]');
		$(_EsdDynamicTransformationScript.inputObject).attr({'title':_EsdDynamicTransformationScript.placeholderSelect1});
	}
//***************	网站上部/导航栏等公共部分 end	***************	//